package com.xiaoxin.dubbo.api;

import com.xiaoxin.model.mongo.Movement;
import com.xiaoxin.model.vo.PageResult;

import java.util.List;

/**
 * @author xiaoxiaode
 * @date 2021-09-03-19:56
 **/
public interface MovementApi {

    void publish(Movement movement);

    PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    List<Movement> findFriendMovement(Integer page, Integer pagesize, Long userId);

    List<Movement> findMovementByPids(List<Long> collect);

    List<Movement> randomMovement(Integer pagesize);

    Movement findById(String movementId);

    PageResult getMessages(Long uid, Integer state, Integer page, Integer pagesize);
}
